/**
 * @desc 查询子节点笔记
 */
import { axios } from '@/plugins/axios';

export function useGetChildren() {
  const getChildren = (
    /** 笔记ID */
    id: number,
  ): Promise<Array<note.Note>> => {
    return axios({
      method: 'post',
      url: `/cn-knowledge/notebook/${id}/notes`,
    });
  };
  return { getChildren };
}
